package com.ray.consumer.service;

import com.alibaba.dubbo.config.annotation.Reference;
import com.ray.entity.User;
import com.ray.service.OrderService;
import com.ray.service.UserService;
import org.springframework.stereotype.Component;

@Component
public class UserServiceImpl implements OrderService {

    @Reference(interfaceClass = UserService.class)
    UserService userService;


    @Override
    public User selectUserByOrderId(Integer userId) {
        return userService.selectUserById(userId);
    }
}
